html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', "Times New Roman";
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#content {
    width: 100%;
}
.container {
    width: 960px;
    margin: 0 auto;
    text-align: center;
}
#prediction {
    width: 400px;
    height: 380px;
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -200px;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}
#prediction_header {
    height: 60px;
    line-height: 60px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0);
    border-radius: 10px 10px 0 0;
}
#stockCode-box {
    height: 200px;
    padding: 30px 20px 10px;
}
input {
    width: 300px;
    padding: 14px 15px;
    background: #F0F0F0;
    font: normal 16px/1.5 Helvetica, "Microsoft Yahei", Arial, sans-serif;
    /*color: #444;*/
}
input:focus, input:active {
    background: #F0F0F0; /* 保持背景颜色一致 */
}
 .stock_span{
    position: relative;
    display: inline-block;
    height: 50px;
    margin-bottom: 30px;
}
.tip {
    text-indent: 80px;
    transition: all 0.3s ease-in-out;
}
.tip:focus, .tip:active {
    text-indent: 0;
}
.tip + label {
    position: absolute;
    top: 16px;
    left: 15px;
    transition: all 0.3s ease-in-out;
}
.tip:focus + label, .tip:active + label {
    transform: translateY(-40px);
    color: white; /* 提示字变为白色 */
}
#prediction_footer {
    margin-bottom: 10px;
}
#prediction_btn {
    width: 50%;
    height: 60px;
    line-height: 60px;
    outline: 0;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background: rgba(0, 0, 0, 0);
    border-radius: 10px;
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s, transform 0.3s;
}
#prediction_btn:hover {
    box-shadow: 0 0 15px 5px white;
    transform: scale(1.05);
}
.option {
    width: 330px;
    position: absolute;
    margin: 0 0 0 15px;
    text-align: left;
    background: #F0F0F0;
    cursor: pointer;
    border-radius: 3px;
}
.option_result {
    display: inline-block;
    padding: 11px 15px;
}
.option_arrow {
    padding: 10px 19px;
    float: right;
}
.option_arrow .arrow {
    width: 0;
    height: 0;
    font-size: 0;
    border: 6px solid;
    border-color: lightskyblue #F0F0F0 #F0F0F0;
}
.option_list {
    background: #F3F3F3;
    display: none;
}
.option_list li {
    padding: 10px 15px;
}
.option_list li:hover {
    background: #DFDFDF;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.loading-content {
    text-align: center;
    color: white;
}
.loading-animation {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    font-size: 18px;
}

/* 全屏覆盖的 div 样式 */
#overlay {
    position: fixed; /* 固定在屏幕上 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    backdrop-filter: blur(0.5px); /* 模糊效果 */
    display: none; /* 初始隐藏 */
    z-index: 1000; /* 确保覆盖在最上层 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

/* 进度提示的样式 */
#progress {
    margin-left: 45%;
    margin-top: 10%;
    color: white; /* 文字颜色 */
    font-size: 1.5em; /* 文字大小 */
    text-align: left; /* 文字靠左对齐 */
    line-height: 0.5em; /* 减小行距 */
}

/*!* 气泡动画效果 *!*/
/*.bubble {*/
/*    opacity: 0; !* 初始透明度为 0 *!*/
/*    transform: scale(0.5); !* 初始缩放比例为 0.5 *!*/
/*    animation: bubbleUp 1s forwards; !* 应用 bubbleUp 动画，持续 1 秒，向前播放 *!*/
/*}*/

/*@keyframes bubbleUp {*/
/*    to {*/
/*        opacity: 1; !* 最终透明度为 1 *!*/
/*        transform: scale(1); !* 最终缩放比例为 1 *!*/
/*    }*/
/*}*/
.bubble {
    opacity: 0; /* 初始透明度为 0 */
    transform: translateY(20px); /* 初始位置在下方 */
    animation: bubbleUp 1s forwards; /* 应用 bubbleUp 动画，持续 1 秒，向前播放 */
}

@keyframes bubbleUp {
    from {
        opacity: 0; /* 初始透明度为 0 */
        transform: translateY(20px); /* 初始位置在下方 */
    }
    to {
        opacity: 1; /* 最终透明度为 1 */
        transform: translateY(0); /* 最终位置 */
    }
}

/* 动态省略号的样式 */
.dots::after {
    content: ''; /* 使用伪元素 */
    display: inline-block; /* 使伪元素成为行内块元素 */
    width: 1em; /* 设置宽度 */
    text-align: left; /* 文字左对齐 */
    animation: dots 2s steps(6, end) infinite; /* 应用动画 */
}

/* 动态省略号的动画效果 */
@keyframes dots {
    0% {
        content: '·; /* 无省略号 */
    }
    20% {
        content: '··';
    }
    40% {
        content: '···'; /* 一个点 */
    }
    60% {
        content: '····'; /* 两个点 */
    }
    80% {
        content: '·····'; /* 三个点 */
    }
    100% {
        content: '······';
    }
}
